package com.bdqn.t296.noso.service.Imp;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bdqn.t296.noso.entity.ReportVo;
import com.bdqn.t296.noso.mapper.CTakeMapper;
import com.bdqn.t296.noso.service.CTakeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class CTakeServiceImp implements CTakeService {
    @Resource
    private CTakeMapper cTakeMapper;

    //查看交过费没取药的患者
    @Override
    public IPage<ReportVo> sel(Page<ReportVo> page) {
        return cTakeMapper.sel(page);
    }

    //修改用户状态
    @Override
    public Integer chuku(ReportVo reportVo) {
        return cTakeMapper.chuku(reportVo);
    }

    @Override
    public IPage<ReportVo> selhuan(Page<ReportVo> page, ReportVo reportVo) {
        return cTakeMapper.selhuan(page, reportVo);
    }

    //查看交过费取过要的患者

    //查询该用户的总价钱
    @Override
    public int zong(Integer reid) {
        return cTakeMapper.zong(reid);
    }
}
